package io;

import java.io.File;
import java.io.IOException;

/**
 * @author 徐志荣
 * @date 2023/3/28 19:49
 */
public class IODemo1 {
    public static void main(String[] args) throws IOException {
        File file = new File("D:\\work\\boke\\画图笔记\\2_3_排序.png");
        System.out.println(file.getParent());
        System.out.println(file.getName());
        System.out.println(file.getPath());
        System.out.println(file.getAbsolutePath());
        System.out.println(file.getCanonicalPath());
    }
}
